<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:ser="http://schemas.microsoft.com/2003/10/Serialization/" xmlns:tns="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.ICM" elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.ICM" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:import schemaLocation="http://localhost:53946/DeliveryNoteItemService.svc?xsd=xsd3" namespace="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.HRM" />
  <xs:import schemaLocation="http://localhost:53946/DeliveryNoteItemService.svc?xsd=xsd4" namespace="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.BGM" />
  <xs:import schemaLocation="http://localhost:53946/DeliveryNoteItemService.svc?xsd=xsd5" namespace="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.ACM" />
  <xs:import schemaLocation="http://localhost:53946/DeliveryNoteItemService.svc?xsd=xsd6" namespace="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.SYS" />
  <xs:import schemaLocation="http://localhost:53946/DeliveryNoteItemService.svc?xsd=xsd1" namespace="http://schemas.microsoft.com/2003/10/Serialization/" />
  <xs:complexType name="DeliveryNoteItem">
    <xs:sequence>
      <xs:element minOccurs="0" name="CreatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="CreatedWhen" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="DeliveryNote" nillable="true" type="tns:DeliveryNote" />
      <xs:element minOccurs="0" name="Descr" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="DnId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="DnItemId" type="xs:int" />
      <xs:element minOccurs="0" name="ExcludeVatAmount" nillable="true" type="xs:double" />
      <xs:element minOccurs="0" name="ItemPriceExcludeVat" nillable="true" type="xs:double" />
      <xs:element minOccurs="0" name="ItemPriceIncludeVat" nillable="true" type="xs:double" />
      <xs:element minOccurs="0" name="ItemQty" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="MasResourceItem" nillable="true" type="tns:MasResourceItem" />
      <xs:element minOccurs="0" name="NetAmount" nillable="true" type="xs:double" />
      <xs:element minOccurs="0" name="NumberOfcount" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="PoInstallItem" nillable="true" type="tns:PurchaseOrderInstallmentItem" />
      <xs:element minOccurs="0" name="PoInstallItemId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="RecordStatus" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Remarks" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ResItemId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="UpdatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="UpdatedWhen" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="VatAmount" nillable="true" type="xs:double" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="DeliveryNoteItem" nillable="true" type="tns:DeliveryNoteItem" />
  <xs:complexType name="DeliveryNote">
    <xs:sequence>
      <xs:element minOccurs="0" name="BgYear" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="Code" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="CreatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="CreatedWhen" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="DeductionAmount" nillable="true" type="xs:double" />
      <xs:element minOccurs="0" name="DeliveryDate" nillable="true" type="xs:dateTime" />
      <xs:element xmlns:q1="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.HRM" minOccurs="0" name="DeliveryEmp" nillable="true" type="q1:Employee" />
      <xs:element minOccurs="0" name="DeliveryEmpId" nillable="true" type="xs:int" />
      <xs:element xmlns:q2="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.HRM" minOccurs="0" name="DeliveryJobSite" nillable="true" type="q2:JobSite" />
      <xs:element minOccurs="0" name="DeliveryJobSiteId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="DeliveryPlace" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Descr" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="DnId" type="xs:int" />
      <xs:element minOccurs="0" name="DocumentNumber" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="InvoiceDate" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="InvoiceNumber" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="PoId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="PoInstallId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="ProgId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="Progress" nillable="true" type="tns:IcmMasLookUp" />
      <xs:element minOccurs="0" name="ProjOperExpId" nillable="true" type="xs:int" />
      <xs:element xmlns:q3="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.BGM" minOccurs="0" name="ProjectOperationExpense" nillable="true" type="q3:ProjectOperationExpense" />
      <xs:element minOccurs="0" name="PurchaseOrder" nillable="true" type="tns:PurchaseOrder" />
      <xs:element minOccurs="0" name="PurchaseOrderInstallment" nillable="true" type="tns:PurchaseOrderInstallment" />
      <xs:element minOccurs="0" name="ReceiveDate" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="RecordStatus" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RedemptionAmount" nillable="true" type="xs:double" />
      <xs:element minOccurs="0" name="TranGrpId" nillable="true" type="xs:int" />
      <xs:element xmlns:q4="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.ACM" minOccurs="0" name="TransectionGroup" nillable="true" type="q4:TransectionGroup" />
      <xs:element minOccurs="0" name="UpdatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="UpdatedWhen" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="Warehouse" nillable="true" type="tns:Warehouse" />
      <xs:element minOccurs="0" name="WhId" nillable="true" type="xs:int" />
      <xs:element xmlns:q5="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.SYS" minOccurs="0" name="YearType" nillable="true" type="q5:YearType" />
      <xs:element minOccurs="0" name="YearTypeId" nillable="true" type="xs:int" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="DeliveryNote" nillable="true" type="tns:DeliveryNote" />
  <xs:complexType name="IcmMasLookUp">
    <xs:sequence>
      <xs:element minOccurs="0" name="CreatedBy" type="xs:int" />
      <xs:element minOccurs="0" name="CreatedWhen" type="xs:dateTime" />
      <xs:element minOccurs="0" name="Description" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="LookUpId" type="xs:int" />
      <xs:element minOccurs="0" name="LookUpName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="LookUpTypeId" type="xs:int" />
      <xs:element minOccurs="0" name="MasLookUpType" nillable="true" type="tns:IcmMasLookUpType" />
      <xs:element minOccurs="0" name="RecordStatus" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="UpdatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="UpdatedWhen" nillable="true" type="xs:dateTime" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="IcmMasLookUp" nillable="true" type="tns:IcmMasLookUp" />
  <xs:complexType name="IcmMasLookUpType">
    <xs:sequence>
      <xs:element minOccurs="0" name="CreatedBy" type="xs:int" />
      <xs:element minOccurs="0" name="CreatedWhen" type="xs:dateTime" />
      <xs:element minOccurs="0" name="Description" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="LookUpTypeId" type="xs:int" />
      <xs:element minOccurs="0" name="LookUpTypeName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RecordStatus" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="UpdatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="UpdatedWhen" nillable="true" type="xs:dateTime" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="IcmMasLookUpType" nillable="true" type="tns:IcmMasLookUpType" />
  <xs:complexType name="MasResourceItem">
    <xs:sequence>
      <xs:element minOccurs="0" name="Code" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="CreatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="CreatedWhen" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="Descr" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="GiinCode" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="GpscCode" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ImageName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="MasResourceSubGroup" nillable="true" type="tns:MasResourceSubGroup" />
      <xs:element minOccurs="0" name="MasUnit" nillable="true" type="tns:MasUnit" />
      <xs:element minOccurs="0" name="MaxPrice" nillable="true" type="xs:double" />
      <xs:element minOccurs="0" name="MaxQty" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="MinPrice" nillable="true" type="xs:double" />
      <xs:element minOccurs="0" name="MinQty" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="OldCode" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RecordStatus" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ResItemId" type="xs:int" />
      <xs:element minOccurs="0" name="ResSubGrpId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="StdPrice" nillable="true" type="xs:double" />
      <xs:element minOccurs="0" name="UnitId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="UpdatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="UpdatedWhen" nillable="true" type="xs:dateTime" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="MasResourceItem" nillable="true" type="tns:MasResourceItem" />
  <xs:complexType name="MasResourceSubGroup">
    <xs:sequence>
      <xs:element minOccurs="0" name="Code" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="CreatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="CreatedWhen" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="Descr" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="DpTypeId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="IncCode" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="MasDepreciationType" nillable="true" type="tns:MasDepreciationType" />
      <xs:element minOccurs="0" name="MasResourceGroup" nillable="true" type="tns:MasResourceGroup" />
      <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="OldCode" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RecordStatus" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ResGrpId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="ResSubGrpId" type="xs:int" />
      <xs:element minOccurs="0" name="UnspscCode" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="UpdatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="UpdatedWhen" nillable="true" type="xs:dateTime" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="MasResourceSubGroup" nillable="true" type="tns:MasResourceSubGroup" />
  <xs:complexType name="MasDepreciationType">
    <xs:sequence>
      <xs:element minOccurs="0" name="CreatedBy" type="xs:int" />
      <xs:element minOccurs="0" name="CreatedWhen" type="xs:dateTime" />
      <xs:element minOccurs="0" name="DpRateYear" type="xs:decimal" />
      <xs:element minOccurs="0" name="DpTypeId" type="xs:int" />
      <xs:element minOccurs="0" name="MaxLifeYear" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="MaxRateYear" nillable="true" type="xs:decimal" />
      <xs:element minOccurs="0" name="MinLifeYear" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="MinRateYear" nillable="true" type="xs:decimal" />
      <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RecordStatus" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ScrapValue" type="xs:decimal" />
      <xs:element minOccurs="0" name="UpdatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="UpdatedWhen" nillable="true" type="xs:dateTime" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="MasDepreciationType" nillable="true" type="tns:MasDepreciationType" />
  <xs:complexType name="MasResourceGroup">
    <xs:sequence>
      <xs:element xmlns:q6="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.ACM" minOccurs="0" name="AssetAccount" nillable="true" type="q6:MasAccount" />
      <xs:element minOccurs="0" name="AssetAccountId" nillable="true" type="xs:int" />
      <xs:element xmlns:q7="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.ACM" minOccurs="0" name="BreakAccount" nillable="true" type="q7:MasAccount" />
      <xs:element minOccurs="0" name="BreakAccountId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="Code" nillable="true" type="xs:string" />
      <xs:element xmlns:q8="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.ACM" minOccurs="0" name="ConsumeAccount" nillable="true" type="q8:MasAccount" />
      <xs:element minOccurs="0" name="ConsumeAccountId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="CreatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="CreatedWhen" nillable="true" type="xs:dateTime" />
      <xs:element xmlns:q9="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.ACM" minOccurs="0" name="CumdepreAccount" nillable="true" type="q9:MasAccount" />
      <xs:element minOccurs="0" name="CumdepreAccountId" nillable="true" type="xs:int" />
      <xs:element xmlns:q10="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.ACM" minOccurs="0" name="DepreAccount" nillable="true" type="q10:MasAccount" />
      <xs:element minOccurs="0" name="DepreAccountId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="Descr" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="DpTypeId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="MasDepreciationType" nillable="true" type="tns:MasDepreciationType" />
      <xs:element minOccurs="0" name="MasResourceType" nillable="true" type="tns:MasResourceType" />
      <xs:element minOccurs="0" name="MinPriceCalDepreciation" nillable="true" type="xs:double" />
      <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="OldCode" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RecordStatus" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ResGrpId" type="xs:int" />
      <xs:element minOccurs="0" name="ResTypeId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="UpdatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="UpdatedWhen" nillable="true" type="xs:dateTime" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="MasResourceGroup" nillable="true" type="tns:MasResourceGroup" />
  <xs:complexType name="MasResourceType">
    <xs:sequence>
      <xs:element minOccurs="0" name="Code" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="CreatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="CreatedWhen" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="DepreciationCalculate" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Descr" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RecordStatus" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ResTypeId" type="xs:int" />
      <xs:element minOccurs="0" name="UpdatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="UpdatedWhen" nillable="true" type="xs:dateTime" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="MasResourceType" nillable="true" type="tns:MasResourceType" />
  <xs:complexType name="MasUnit">
    <xs:sequence>
      <xs:element minOccurs="0" name="Code" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="CreatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="CreatedWhen" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="Descr" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RecordStatus" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Sign" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="UnitId" type="xs:int" />
      <xs:element minOccurs="0" name="UpdatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="UpdatedWhen" nillable="true" type="xs:dateTime" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="MasUnit" nillable="true" type="tns:MasUnit" />
  <xs:complexType name="PurchaseOrder">
    <xs:sequence>
      <xs:element minOccurs="0" name="BgYear" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="Bidder" nillable="true" type="tns:Bidder" />
      <xs:element minOccurs="0" name="BidderId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="CanInstallment" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="CanSeparateDetail" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Code" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="CreatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="CreatedWhen" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="DateReturnContract" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="DateReturnPrepay" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="DateReturnRedemption" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="DateStartCount" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="DeliveryDate" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="Descr" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="DurTypeId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="DurationType" nillable="true" type="tns:IcmMasLookUp" />
      <xs:element minOccurs="0" name="Gfmis" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="MasPurchaseType" nillable="true" type="tns:MasPurchaseType" />
      <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="NotSeparateReason" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="OrderDate" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="PcTypeId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="PenaltyType" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="PoId" type="xs:int" />
      <xs:element minOccurs="0" name="PrepayAmount" nillable="true" type="xs:double" />
      <xs:element minOccurs="0" name="Progress" nillable="true" type="tns:IcmMasLookUp" />
      <xs:element minOccurs="0" name="ProgressId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="RecordStatus" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RedemptionPercent" nillable="true" type="xs:double" />
      <xs:element minOccurs="0" name="RequireDate" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="RequireDuration" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="UpdatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="UpdatedWhen" nillable="true" type="xs:dateTime" />
      <xs:element xmlns:q11="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.SYS" minOccurs="0" name="YearType" nillable="true" type="q11:YearType" />
      <xs:element minOccurs="0" name="YearTypeId" nillable="true" type="xs:int" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="PurchaseOrder" nillable="true" type="tns:PurchaseOrder" />
  <xs:complexType name="Bidder">
    <xs:sequence>
      <xs:element minOccurs="0" name="Bid" nillable="true" type="tns:Bid" />
      <xs:element minOccurs="0" name="BidId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="BidderDate" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="BidderId" type="xs:int" />
      <xs:element minOccurs="0" name="ConId" type="xs:int" />
      <xs:element minOccurs="0" name="CreatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="CreatedWhen" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="DueDate" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="DueDay" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="DurTypeId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="DurationType" nillable="true" type="tns:IcmMasLookUp" />
      <xs:element minOccurs="0" name="MasContact" nillable="true" type="tns:MasContact" />
      <xs:element minOccurs="0" name="OfferDate" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="OfferStatus" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="PrId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="PurchaseRequest" nillable="true" type="tns:PurchaseRequest" />
      <xs:element minOccurs="0" name="ReceiptNo" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ReceiveDate" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="ReceiveStatus" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="UpdatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="UpdatedWhen" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="VatPercent" nillable="true" type="xs:double" />
      <xs:element minOccurs="0" name="VatType" nillable="true" type="tns:IcmMasLookUp" />
      <xs:element minOccurs="0" name="VatTypeId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="WinnerStatus" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="Bidder" nillable="true" type="tns:Bidder" />
  <xs:complexType name="Bid">
    <xs:sequence>
      <xs:element minOccurs="0" name="AnnounceDate" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="ApprovedWhen" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="BgYear" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="BidDate" nillable="true" type="xs:dateTime" />
      <xs:element xmlns:q12="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.HRM" minOccurs="0" name="BidEmp" nillable="true" type="q12:Employee" />
      <xs:element minOccurs="0" name="BidEmpId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="BidId" type="xs:int" />
      <xs:element xmlns:q13="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.HRM" minOccurs="0" name="BidJobSite" nillable="true" type="q13:JobSite" />
      <xs:element minOccurs="0" name="BidJobSiteId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="BuildingDate" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="BuildingTimeEnd" nillable="true" type="ser:duration" />
      <xs:element minOccurs="0" name="BuildingTimeStart" nillable="true" type="ser:duration" />
      <xs:element minOccurs="0" name="CancelDate" nillable="true" type="xs:dateTime" />
      <xs:element xmlns:q14="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.HRM" minOccurs="0" name="CancelEmp" nillable="true" type="q14:Employee" />
      <xs:element minOccurs="0" name="CancelEmpId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="Code" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ConfirmDate" nillable="true" type="xs:dateTime" />
      <xs:element xmlns:q15="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.HRM" minOccurs="0" name="ConfirmEmp" nillable="true" type="q15:Employee" />
      <xs:element minOccurs="0" name="ConfirmEmpId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="CreatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="CreatedWhen" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="Descr" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="DiscloseDate" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="DisclosePlace" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="DiscloseTime" nillable="true" type="ser:duration" />
      <xs:element minOccurs="0" name="DocumentAmount" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="ExplainDate" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="ExplainTime" nillable="true" type="ser:duration" />
      <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="OfferDateEnd" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="OfferDateStart" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="OfferPlace" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="OfferTimeEnd" nillable="true" type="ser:duration" />
      <xs:element minOccurs="0" name="OfferTimeStart" nillable="true" type="ser:duration" />
      <xs:element minOccurs="0" name="PrId" type="xs:int" />
      <xs:element minOccurs="0" name="PurchaseRequest" nillable="true" type="tns:PurchaseRequest" />
      <xs:element minOccurs="0" name="ReceiveDateEnd" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="ReceiveDateStart" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="ReceivePlace" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ReceiveTimeEnd" nillable="true" type="ser:duration" />
      <xs:element minOccurs="0" name="ReceiveTimeStart" nillable="true" type="ser:duration" />
      <xs:element minOccurs="0" name="ReceiveType" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RecordStatus" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="UpdatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="UpdatedWhen" nillable="true" type="xs:dateTime" />
      <xs:element xmlns:q16="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.SYS" minOccurs="0" name="YearType" nillable="true" type="q16:YearType" />
      <xs:element minOccurs="0" name="YearTypeId" nillable="true" type="xs:int" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="Bid" nillable="true" type="tns:Bid" />
  <xs:complexType name="PurchaseRequest">
    <xs:sequence>
      <xs:element minOccurs="0" name="BgYear" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="CancelDate" nillable="true" type="xs:dateTime" />
      <xs:element xmlns:q17="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.HRM" minOccurs="0" name="CancelEmp" nillable="true" type="q17:Employee" />
      <xs:element minOccurs="0" name="CancelEmpId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="Code" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ConfirmDate" nillable="true" type="xs:dateTime" />
      <xs:element xmlns:q18="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.HRM" minOccurs="0" name="ConfirmEmp" nillable="true" type="q18:Employee" />
      <xs:element minOccurs="0" name="ConfirmEmpId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="CreatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="CreatedWhen" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="DurCountId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="DurTypeId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="DurationCount" nillable="true" type="tns:IcmMasLookUp" />
      <xs:element minOccurs="0" name="DurationType" nillable="true" type="tns:IcmMasLookUp" />
      <xs:element minOccurs="0" name="MasPurchaseMethod" nillable="true" type="tns:MasPurchaseMethod" />
      <xs:element minOccurs="0" name="MasPurchaseRegular" nillable="true" type="tns:MasPurchaseRegular" />
      <xs:element minOccurs="0" name="MasPurchaseType" nillable="true" type="tns:MasPurchaseType" />
      <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="PcMethodId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="PcMethodReason" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="PcTypeId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="PrId" type="xs:int" />
      <xs:element minOccurs="0" name="Priority" nillable="true" type="tns:IcmMasLookUp" />
      <xs:element minOccurs="0" name="PriorityId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="Progress" nillable="true" type="tns:IcmMasLookUp" />
      <xs:element minOccurs="0" name="ProgressId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="PurchaseDate" nillable="true" type="xs:dateTime" />
      <xs:element xmlns:q19="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.HRM" minOccurs="0" name="PurchaseEmp" nillable="true" type="q19:Employee" />
      <xs:element minOccurs="0" name="PurchaseEmpId" nillable="true" type="xs:int" />
      <xs:element xmlns:q20="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.HRM" minOccurs="0" name="PurchaseJobSite" nillable="true" type="q20:JobSite" />
      <xs:element minOccurs="0" name="PurchaseJobSiteId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="Reason" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RecordStatus" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RegularId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="Remark" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RequireDate" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="RequireDuration" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="UpdatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="UpdatedWhen" nillable="true" type="xs:dateTime" />
      <xs:element xmlns:q21="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.SYS" minOccurs="0" name="YearType" nillable="true" type="q21:YearType" />
      <xs:element minOccurs="0" name="YearTypeId" nillable="true" type="xs:int" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="PurchaseRequest" nillable="true" type="tns:PurchaseRequest" />
  <xs:complexType name="MasPurchaseMethod">
    <xs:sequence>
      <xs:element minOccurs="0" name="CreatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="CreatedWhen" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="Descr" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="IsBid" nillable="true" type="xs:boolean" />
      <xs:element minOccurs="0" name="MasPurchaseType" nillable="true" type="tns:MasPurchaseType" />
      <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="PcMethodId" type="xs:int" />
      <xs:element minOccurs="0" name="PcTypeId" type="xs:int" />
      <xs:element minOccurs="0" name="Reason" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RecordStatus" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="UpdatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="UpdatedWhen" nillable="true" type="xs:dateTime" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="MasPurchaseMethod" nillable="true" type="tns:MasPurchaseMethod" />
  <xs:complexType name="MasPurchaseType">
    <xs:sequence>
      <xs:element minOccurs="0" name="CreatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="CreatedWhen" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="PcTypeDescr" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="PcTypeId" type="xs:int" />
      <xs:element minOccurs="0" name="PcTypeName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RecordStatus" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RestoredBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="RestoredWhen" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="UpdatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="UpdatedWhen" nillable="true" type="xs:dateTime" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="MasPurchaseType" nillable="true" type="tns:MasPurchaseType" />
  <xs:complexType name="MasPurchaseRegular">
    <xs:sequence>
      <xs:element minOccurs="0" name="Description" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RecordStatus" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RegularId" type="xs:int" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="MasPurchaseRegular" nillable="true" type="tns:MasPurchaseRegular" />
  <xs:complexType name="MasContact">
    <xs:sequence>
      <xs:element minOccurs="0" name="Address" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Amphur" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Building" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ConCategory" type="xs:int" />
      <xs:element minOccurs="0" name="ConGrpId" type="xs:int" />
      <xs:element minOccurs="0" name="ConId" type="xs:int" />
      <xs:element minOccurs="0" name="ConStatusId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="ContactGroup" nillable="true" type="tns:IcmMasLookUp" />
      <xs:element minOccurs="0" name="ContactStatus" nillable="true" type="tns:IcmMasLookUp" />
      <xs:element minOccurs="0" name="Coordinator" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Country" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="CreatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="CreatedWhen" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="District" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Email" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Fax" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="FaxNext" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Floor" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="GfmisCode" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Lane" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="NameEng" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="NameTh" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Postal" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Province" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RecordStatus" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RegistedCapital" nillable="true" type="xs:decimal" />
      <xs:element minOccurs="0" name="RegistedDate" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="Road" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="StatRemarks" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="TaxCode" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Tel" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="TelNext" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="UpdatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="UpdatedWhen" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="VatType" nillable="true" type="tns:IcmMasLookUp" />
      <xs:element minOccurs="0" name="VatTypeId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="Village" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="MasContact" nillable="true" type="tns:MasContact" />
  <xs:complexType name="PurchaseOrderInstallment">
    <xs:sequence>
      <xs:element minOccurs="0" name="CreatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="CreatedWhen" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="DeductionAmount" nillable="true" type="xs:double" />
      <xs:element minOccurs="0" name="DeliveryDate" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="DurTypeId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="DurationType" nillable="true" type="tns:IcmMasLookUp" />
      <xs:element minOccurs="0" name="InstallNumber" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="PoId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="PoInstallId" type="xs:int" />
      <xs:element minOccurs="0" name="PurchaseOrder" nillable="true" type="tns:PurchaseOrder" />
      <xs:element minOccurs="0" name="RedemptionAmount" nillable="true" type="xs:double" />
      <xs:element minOccurs="0" name="Remarks" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RequireDate" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="RequireDuration" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="UpdatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="UpdatedWhen" nillable="true" type="xs:dateTime" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="PurchaseOrderInstallment" nillable="true" type="tns:PurchaseOrderInstallment" />
  <xs:complexType name="Warehouse">
    <xs:sequence>
      <xs:element minOccurs="0" name="CreatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="CreatedWhen" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="Description" nillable="true" type="xs:string" />
      <xs:element xmlns:q22="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.HRM" minOccurs="0" name="JobSite" nillable="true" type="q22:JobSite" />
      <xs:element minOccurs="0" name="JobSiteId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RecordStatus" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Scope" nillable="true" type="tns:IcmMasLookUp" />
      <xs:element minOccurs="0" name="ScopeId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="UpdatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="UpdatedWhen" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="WhId" type="xs:int" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="Warehouse" nillable="true" type="tns:Warehouse" />
  <xs:complexType name="PurchaseOrderInstallmentItem">
    <xs:sequence>
      <xs:element minOccurs="0" name="BidderQuoId" type="xs:int" />
      <xs:element minOccurs="0" name="BidderQuotation" nillable="true" type="tns:BidderQuotation" />
      <xs:element minOccurs="0" name="CreatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="CreatedWhen" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="Descr" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ExcludeVatAmount" nillable="true" type="xs:double" />
      <xs:element minOccurs="0" name="ItemPriceExcludeVat" nillable="true" type="xs:double" />
      <xs:element minOccurs="0" name="ItemPriceIncludeVat" nillable="true" type="xs:double" />
      <xs:element minOccurs="0" name="NetAmount" nillable="true" type="xs:double" />
      <xs:element minOccurs="0" name="PoInstallId" type="xs:int" />
      <xs:element minOccurs="0" name="PoInstallItemId" type="xs:int" />
      <xs:element minOccurs="0" name="PurchaseOrderInstallment" nillable="true" type="tns:PurchaseOrderInstallment" />
      <xs:element minOccurs="0" name="Qty" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="UpdatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="UpdatedWhen" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="VatAmount" nillable="true" type="xs:double" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="PurchaseOrderInstallmentItem" nillable="true" type="tns:PurchaseOrderInstallmentItem" />
  <xs:complexType name="BidderQuotation">
    <xs:sequence>
      <xs:element minOccurs="0" name="Bidder" nillable="true" type="tns:Bidder" />
      <xs:element minOccurs="0" name="BidderId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="BidderQuoId" type="xs:int" />
      <xs:element minOccurs="0" name="CreatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="CreatedWhen" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="Descr" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="DiscountPercent" nillable="true" type="xs:decimal" />
      <xs:element minOccurs="0" name="ExcludeVatAmount" nillable="true" type="xs:decimal" />
      <xs:element minOccurs="0" name="ExtraDiscount" nillable="true" type="xs:decimal" />
      <xs:element minOccurs="0" name="NetAmount" nillable="true" type="xs:decimal" />
      <xs:element minOccurs="0" name="PrItemId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="Price" nillable="true" type="xs:decimal" />
      <xs:element minOccurs="0" name="PurchaseRequestItem" nillable="true" type="tns:PurchaseRequestItem" />
      <xs:element minOccurs="0" name="Qty" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="Remarks" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Selected" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="SelectedReason" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="UpdatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="UpdatedWhen" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="VatAmount" nillable="true" type="xs:decimal" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="BidderQuotation" nillable="true" type="tns:BidderQuotation" />
  <xs:complexType name="PurchaseRequestItem">
    <xs:sequence>
      <xs:element minOccurs="0" name="Amount" nillable="true" type="xs:decimal" />
      <xs:element minOccurs="0" name="BgExpId" type="xs:int" />
      <xs:element minOccurs="0" name="CreatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="CreatedWhen" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="Descr" nillable="true" type="xs:string" />
      <xs:element xmlns:q23="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.BGM" minOccurs="0" name="MasBudgetExpense" nillable="true" type="q23:MasBudgetExpense" />
      <xs:element minOccurs="0" name="MasResourceItem" nillable="true" type="tns:MasResourceItem" />
      <xs:element minOccurs="0" name="MaxPrice" nillable="true" type="xs:decimal" />
      <xs:element minOccurs="0" name="MinPrice" nillable="true" type="xs:decimal" />
      <xs:element minOccurs="0" name="OriQty" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="PrId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="PrItemId" type="xs:int" />
      <xs:element minOccurs="0" name="Price" nillable="true" type="xs:decimal" />
      <xs:element minOccurs="0" name="PurchaseRequest" nillable="true" type="tns:PurchaseRequest" />
      <xs:element minOccurs="0" name="Qty" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="RecordStatus" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ResItemId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="StdPrice" nillable="true" type="xs:decimal" />
      <xs:element minOccurs="0" name="UpdatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="UpdatedWhen" nillable="true" type="xs:dateTime" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="PurchaseRequestItem" nillable="true" type="tns:PurchaseRequestItem" />
  <xs:complexType name="ArrayOfDeliveryNoteItem">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="DeliveryNoteItem" nillable="true" type="tns:DeliveryNoteItem" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfDeliveryNoteItem" nillable="true" type="tns:ArrayOfDeliveryNoteItem" />
  <xs:complexType name="DeliveryNotePenalty">
    <xs:sequence>
      <xs:element minOccurs="0" name="CreatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="CreatedWhen" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="DeliveryNote" nillable="true" type="tns:DeliveryNote" />
      <xs:element minOccurs="0" name="DnId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="DnPenId" type="xs:int" />
      <xs:element minOccurs="0" name="PenaltyAmount" nillable="true" type="xs:double" />
      <xs:element minOccurs="0" name="PenaltyCalculate" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="PenaltyFinalAmount" nillable="true" type="xs:double" />
      <xs:element minOccurs="0" name="PoPenId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="PurchaseOrderPenalty" nillable="true" type="tns:PurchaseOrderPenalty" />
      <xs:element minOccurs="0" name="Remarks" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="UpdatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="UpdatedWhen" nillable="true" type="xs:dateTime" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="DeliveryNotePenalty" nillable="true" type="tns:DeliveryNotePenalty" />
  <xs:complexType name="PurchaseOrderPenalty">
    <xs:sequence>
      <xs:element minOccurs="0" name="CreatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="CreatedWhen" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="Descr" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="PenaltyLeast" nillable="true" type="xs:double" />
      <xs:element minOccurs="0" name="PenaltyRate" nillable="true" type="xs:double" />
      <xs:element minOccurs="0" name="PenaltyRateType" nillable="true" type="tns:IcmMasLookUp" />
      <xs:element minOccurs="0" name="PoId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="PoPenId" type="xs:int" />
      <xs:element minOccurs="0" name="PurchaseOrder" nillable="true" type="tns:PurchaseOrder" />
      <xs:element minOccurs="0" name="RateTypeId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="UpdatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="UpdatedWhen" nillable="true" type="xs:dateTime" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="PurchaseOrderPenalty" nillable="true" type="tns:PurchaseOrderPenalty" />
  <xs:complexType name="ArrayOfDeliveryNotePenalty">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="DeliveryNotePenalty" nillable="true" type="tns:DeliveryNotePenalty" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfDeliveryNotePenalty" nillable="true" type="tns:ArrayOfDeliveryNotePenalty" />
  <xs:complexType name="ArrayOfPurchaseOrderPenalty">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="PurchaseOrderPenalty" nillable="true" type="tns:PurchaseOrderPenalty" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfPurchaseOrderPenalty" nillable="true" type="tns:ArrayOfPurchaseOrderPenalty" />
</xs:schema>